package com.futong.cloud.action;

import com.futong.cloud.dao.entity.ActionFiled;
import com.futong.cloud.dao.entity.ActionFunction;
import com.futong.cloud.dao.entity.ActionInfo;
import lombok.Data;

import java.util.List;

@Data
public class ActionModel extends ActionInfo{
    @Data
    public static class ActionFiledModel extends ActionFiled{
        @Override
        public  boolean equals(final Object obj){
            if(obj==null)return false;
            final ActionFiledModel model= (ActionFiledModel) obj;
            return this.getId().equals(model.getId());
        }
    }
    @Data
    public static class ActionFunctionModel extends ActionFunction{
        ActionConsumer consumer;
    }
    private List<ActionFiledModel> fileds;
    private List<ActionFunctionModel> functions;
}
